Patch for #163214 (reported by Tommi Komulainen) and fixes some other
authorKristian Rietveld <kris@gtk.org>
Tue, 14 Jun 2005 22:26:04 +0000 (22:26 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Tue, 14 Jun 2005 22:26:04 +0000 (22:26 +0000)
commit5641d252beda48a5a0fa59818bfed7bc19243716
treef847c67b710fe0f795f1b14ca153c7a7417968a0
parent933ae285671204e4deb38dc9804ab3fd32be2343
Patch for #163214 (reported by Tommi Komulainen) and fixes some other

2005-06-15  Kristian Rietveld  <kris@gtk.org>

Patch for #163214 (reported by Tommi Komulainen) and fixes some
other scrolling/validation related bugs along the why.

* gtk/gtktreeview.c (gtk_tree_view_size_request): run
do_validate_rows once and don't queue a size request there,
(gtk_tree_view_size_allocate): don't update vadj value without
reason, sync top_row/dy after the window sizes and adjustments
are in sync again,
(validate_visible_area): always update dy when scrolling,
manually set top_row here after changing the vadj (don't depend
on _adjustment_changed and top_row/dy sync to do this), since we
now always set top_row here correctly, we can always free
scroll_to_path at the end which avoids infinite expose loops,
(do_validate_rows): add queue_resize boolean, remove top_row/dy
sync here, we cannot do it safely at this place since the
window sizes and adjustments are out of sync,
(validate_rows), (validate_rows_handler): update call to
do_validate_rows().
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gtk/gtktreeview.c